import { envConfigs } from "../config/index";

export const MAO_CAI_SHEN = "猫财神";
export const ZHONG_CHUI_DI = "重锤帝";
export const DA_SI_MA = "大司马";

export const initialState = {
  mockTextArr: [
    "重注：",
    "1:1主-1.5角",
    "1:2客队-1",
    "全场大12角",
    "半客队-1角",
    "客-0",
    "主-0",
    "均注：",
    "主-0.5/1球",
    "滚球：18张",
    "主大1.5球】 10张",
    "【2-3球】 20张",
    "【大4.5牌】 20张",
    "主大5.5角",
    "主大2/2.5球",
    "半大1.5球等水",
    "风险单：10张",
    "比分：",
    "【2-1 | 2-0 | 3-1】 5张",
  ],
  textArr: [],
  mainTaskInterval: null,
  mainTaskTimeStamp: 5 * 60 * 1000,
  canvasText: "",
  uploadHost: "http://localhost:3000",
  zhuboMapWords: {},
  cateElementClassNameMaps: {}, // { '大/小': 'xcxderw', .... }
  zhuName: "",
  keName: "",
  // 一级分类模糊文本匹配精确文本
  noReal2RealMaps: {},
  // 精确到模糊
  real2NoRealMaps: {},
  // 下单的内容
  orderItems: [],
  // 根据canvas获取的text
  lastTextArrByCanvas: [],
  // 比赛是否结束
  gameStatus: "比赛进行中",
  // 强制点击暂停
  clickPause: false,
  styleFixedDiv: `
  .fixed-div {
     padding: 6px;
     position: fixed;
     top: 10px;
     left: 10px;
     width: 280px;
     background-color: #80d4ff; /* 一种浅蓝色，你可以根据喜好调整颜色 222 */
     border: 1px solid #4dabf7; /* 稍深一点的蓝色边框 */
     border-radius: 4px;
     color: white;
     z-index: 2000;
   }
  `,
  initfuncTime: 0,
  lskey: "",
  // init方法的sleep
  initSleepTimeStamp: 1000,
  touzhuTime: 0,
  getCanvasByXYFuncTime: 0,
  findZhuBoTime: 0,
  payBeiShu: 1,

  ...envConfigs,
};


export const LEFT_PREFIX_RIGHT = '&PREFIX&'

export const HALF_END = "半场结束";
export const ALL_END = "全场结束";
export const GAMEING = "比赛进行中";
export const ORDER_ITEMS = "order_items";

// 全场进球
export const GOAL = "大小";
export const HALF_GOAL = "大小上半场";
export const HOME_GOAL = "主队进球大小";
export const GUEST_GOAL = "客队进球大小";
export const HALE_HOME_GOAL = "主队进球大小上半场";
export const HALF_GUEST_GOAL = "客队进球大小上半场";
// 全场角球
export const CORNER = "角球大小";
export const HALF_CORNER = "角球大小上半场";
export const HOME_CORNER = "主队角球大小";
export const GUEST_CORNER = "客队角球大小";
export const HALE_HOME_CORNER = "主队角球大小上半场";
export const HALF_GUEST_CORNER = "客队角球大小上半场";
// 罚牌
export const YELLO_CARD = "罚牌数大小";
export const HALF_YELLO_CARD = "罚牌数大小上半场";
export const HOME_YELLO_CARD = "主队罚牌数大小";
export const GUEST_YELLO_CARD = "客队罚牌数大小";
export const HALF_HOME_YELLO_CARD = "主队罚牌数大小上半场";
export const HALF_GUEST_YELLO_CARD = "客队罚牌数大小上半场";
// 让球
export const RANG_BALL = "让球";
export const HALF_RANG_BALL = "让球上半场";
// 让角
export const RANG_CORNER = "角球让球";
export const HALF_RANG_CORNER = "角球让球上半场";
// 让牌
export const RANG_YELLOW_CARD = "让牌";
export const HALF_RANG_YELLOW_CARD = "半场让牌";
// 双进
export const BOTH_GOAL = "双方均有进球";
export const ONE_HALF_BOTH_GOAL = "双方均有进球上半场";
export const TWO_HALF_BOTH_GOAL = "双方均有进球下半场";
// 正确比分
export const RIGHT_SCORE = "正确比分";
export const RIGHT_SCORE_ONE_HALF = "正确比分上半场";
export const RIGHT_SCORE_TWO_HALF = "正确比分下半场";
export const RIGHT_SCORE_V2 = "比分";
export const RIGHT_SCORE_ONE_HALF_V2 = "正确比分上半场";
export const RIGHT_SCORE_TWO_HALF_V2 = "正确比分下半场";
// 最多进球半场
export const MORE_GOAL_HALF = "最多进球半场";
// 胜平负
export const WIN_DRAW_LOSE = "胜平负";
export const ONE_HALF_WIN_DRAW_LOSE = "胜平负上半场";
export const TWO_HALF_WIN_DRAW_LOSE = "胜平负下半场";
// 晋级
export const LAST_WIN = "晋级";
// 主赢任意半场
export const WIN_ANY_HALF = "主赢任意半场";
// 客赢任意半场
export const LOSE_ANY_HALF = "客赢任意半场";
// 主上下半场进球
export const HOME_SCORE_TWO_HALF = "主上下半场均有进球";
// 客上下半场进球
export const GUEST_SCORE_TWO_HALF = "客上下半场均有进球";
// 半全场
export const HALF_FULL_TIME = "半全场";
// 第N个进球方式
export const SCORE_TYPE = "第N个进球方式";
// 第N个进球球员
export const SCORE_PLAYER = "第N个进球球员";